{% extends "base.html" %}{% load base_tags %}
{% block title %}Registrierung{% endblock %}
{% block submenu %}
	Du kannst Dir einen Account erstellen, indem Du dieses Formular ausfüllst.
{% endblock %}
{% block content %}
	{% hintblock %}
		Felder, die mit einem Sternchen markiert sind, müssen ausgefüllt werden. Alle anderen sind optional.
	{% endhintblock %}
	<form method="post" action="{% url account_register %}">
	{% csrf_token %}
	{% if form.errors %}
		{% errorblock %}
			{% for field in form %}
				{% if field.errors %}
					{{ field.label }}:
					{% for error in field.errors %}{{ error }}<br />{% endfor %}
				{% endif %}
			{% endfor %}
		{% enderrorblock %}
	{% endif %}	
	<table>
	    {% for field in form %}
	    <tr>
	        <td>{{ field.label_tag }}:</td>
	        <td>
	            {{ field|safe }}
	            {% if field.field.required %}*{% endif %}
	            {% if field.help_text %}
	                <br />
	                <span class="help_text">
	                    {{ field.help_text }}
	                </span>
	            {% endif %}
	        </td>
	    </tr>
	    {% endfor %}        
	    <tr>
	        <td><input type="hidden" name="next" value="{{ next }}" /></td>
	        <td><input type="submit" value="Registrieren" /></td>
	    </tr>
	</table>
	</form>
	<script type="text/javascript">
		$(document).ready(function() {
			$('#id_username').focus();
		});
	</script>
{% endblock %}
